OBJS=soapcrt.o soaparse.o helpers.o que.o low.o custom.o typechk.o secure.o
HDRS=low.h que.h soapcrt.h soaparse.h helpers.h custom.h typechk.h secure.h client.h
CC=gcc -I./include
CFLAGS = -Wall -L. -L./libssl
LFLAGS = -lssl -lcrypto -lixml

all: client

client: $(OBJS) client.o
	$(CC) $(CFLAGS) $(OBJS) client.o -o client $(LFLAGS)

client.o: client.c $(HDRS)
	$(CC) -c client.c

soaparse.o: soaparse.c soaparse.h
	$(CC) -c soaparse.c

soapcrt.o: soapcrt.c soapcrt.h
	$(CC) -c soapcrt.c

low.o: low.c low.h
	$(CC) -c low.c

que.o: que.c que.h
	$(CC) -c que.c

helpers.o: helpers.c helpers.h
	$(CC) -c helpers.c

typechk.o: typechk.c typechk.h
	$(CC) -c typechk.c

secure.o: secure.c secure.h
	$(CC) -c secure.c

custom.o: custom.c custom.h
	$(CC) -c custom.c


.PHONY: clean
clean:
	rm *.o
	rm client
